<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
    <title>提示页</title>
    <script type="text/javascript">
        var require = {
            config:  {$config|json_encode}
        };
    </script>
    <link rel="stylesheet" href="__CDN__/assets/css/weui.css"/>
    <link rel="stylesheet" href="__CDN__/assets/css/jquery-weui.css"/>
    <link rel="stylesheet" href="__CDN__/assets/css/example.css"/>

</head>
<body ontouchstart>
<div class="weui-toptips weui-toptips_warn js_tooltips">错误提示</div>

<div class="container" id="container">
    {php}
        $codeClass=$code == 1 ? 'weui-icon-success' : ($code == 0 ? 'weui-icon-warn' : 'weui-icon-success');
        $codeText=$code == 1 ? '提交成功' : ($code == 0 ? '操作失败' : '');
    {/php}
    <div class="page">
        <div class="weui-msg">
            <div class="weui-msg__icon-area"><i class="{$codeClass} weui-icon_msg"></i></div>
            <div class="weui-msg__text-area">
                <p class="weui-msg__desc">
                    <h3 class="weui-msg__title">{$msg}</h3>
                     <p class="jump weui-msg__desc" style="color: red;">
                        {eq name="data" value="0"}为保证您和大家的健康安全，以上信息如有变动请及时更新！{/eq}
                        {eq name="data" value="1"}为保证您和大家的健康安全，请每天上报防疫信息！{/eq}

                    </p>
                    <!-- {if $url}

                        <p class="jump weui-msg__desc">{:__('页面将在 %s 秒后自动跳转', '<span id="wait">' . $wait . '</span>')}</p>

                    {/if} -->
                </p>
            </div>
            <div class="weui-msg__opr-area">
                <p class="weui-btn-area">
                    <!--a href="{url}" class="weui-btn weui-btn_success">{:__('确定')}</a-->
                    {php}
                        if($code == 1){
                        {/php}
                    <a href="" onclick="WeixinJSBridge.invoke('closeWindow', {}, function (res) { });" class="weui-btn weui-btn_success">{:__('确定')}</a>
                        {php}
                        }else{
                            {/php}
                            <a href="" onclick="window.history.back()" class="weui-btn weui-btn_success">{:__('确定')}</a>
                    {php}
                            }
                    {/php}

                </p>
            </div>

        </div>
    </div>
</div>
<!-- {if $url}
    <script type="text/javascript">
        (function () {
            var wait = document.getElementById('wait');
            var interval = setInterval(function () {
                var time = --wait.innerHTML;
                if (time <= 0) {
                    location.href = "{$url}";
                    clearInterval(interval);
                }
            }, 1000);
        })();
    </script>
{/if} -->
</body>
</html>